//
//  UIButton+Action.h
//  14-运行时关联对象
//
//  Created by wanglei on 16/12/23.
//  Copyright © 2016年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <objc/objc-runtime.h>
typedef void (^ActionBlock)(UIButton *button);
@interface UIButton (Action)

@property (nonatomic,copy) ActionBlock actionBlock;

+ (UIButton *)createBtnWithFrame:(CGRect)frame title:(NSString *)title actionBlock:(ActionBlock)actionBlock;
- (void)buttonClick:(UIButton *)button;
@end
